home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / Makefile.inc < prev    next >
Encoding:
Makefile  |  1997-08-18  |  1.4 KB  |  65 lines  |  [TEXT/R*ch]

  1. # Unix configuration Makefile for Moscow ML
  2.  
  3. # Edit MOSMLHOME, CPP and STRIP to suit your installation
  4.  
  5. MOSMLHOME=${HOME}/mosml
  6.  
  7. # For Linux and other well-behaved systems, use:
  8. CPP=/lib/cpp -P -traditional -Dunix -Umsdos
  9. STRIP=strip
  10.  
  11. # For HP-UX, use instead:
  12. # CPP=/lib/cpp -P -Dunix -Umsdos
  13.  
  14. # For SunOS 5.4 and similar (Solaris 2), use instead:
  15. # CPP=/usr/ccs/lib/cpp -P -Dunix -Umsdos
  16. # STRIP=/usr/ccs/bin/strip
  17.  
  18. SHELL=/bin/sh
  19.  
  20. # ---------- You shouldn't need to edit below this line ------------
  21.  
  22. # BINDIR contains true executable files, such as scripts
  23. # LIBDIR contains bytecode files (such as mosmlcmp and library units)
  24.  
  25. BINDIR=${MOSMLHOME}/bin
  26. LIBDIR=${MOSMLHOME}/lib
  27. TOOLDIR=${MOSMLHOME}/tools
  28.  
  29. CAMLRT=../runtime
  30.  
  31. MOSMLTOOLS=../tools
  32.  
  33. MOSMLC=../camlrunm ../mosmlcmp -stdlib ../mosmllib -P none
  34. MOSMLL=../camlrunm ../mosmllnk -stdlib ../mosmllib -P none
  35. MOSMLLDOS=../camlrunm ../mosmllnk.dos -stdlib ../mosmllib -P none
  36. MOSMLLNEW=../camlrunm ../mosmllnk.new -stdlib ../mosmllib -P none
  37.  
  38. MOSMLLEX=../camlrunm ../mosmllex
  39. MOSMLYACC=../mosmlyac/mosmlyac
  40. MOSMLCUT=../camlrunm ../cutdeps 
  41. MOSMLDEP=../camlrunm ../mosmldep
  42.  
  43. # For cross-compiling to MS DOS (from Linux) (development only)
  44. # CPP=/lib/cpp -P -traditional -Uunix -Dmsdos
  45.  
  46. CC=gcc
  47.  
  48. .SUFFIXES :
  49. .SUFFIXES : .sml .sig .ui .uo .mlp .lex .c .o
  50.  
  51. .sig.ui:
  52.     $(MOSMLC) $(COMPFLAGS) $<
  53.  
  54. .sml.uo:
  55.     $(MOSMLC) $(COMPFLAGS) $<
  56.  
  57. .mlp.sml:
  58.     $(CPP) $< > $*.sml
  59.  
  60. .lex.sml:
  61.     $(MOSMLLEX) $<
  62.  
  63. .c.o:
  64.     $(CC) -c $(CFLAGS) -o $@ $<
  65.